<script>
    var username = 'laohu';
    var age = 100;

    var str = `<div style="border:1px solid">用户名:${username} ----  年龄: ${age}</div>`;
    document.write(str);


</script>